﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TJADRICD.CollaborativeDesignPlugin;

namespace TJADRICD.CollaborativeDesignPlugin.Form
{
    public partial class SignerName : System.Windows.Forms.Form
    {
        public SignerName()
        {
            InitializeComponent();
        }

        public String name;
        public String path;

        private void btn_Cancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btn_OK_Click(object sender, EventArgs e)
        {
            if (tb_Name.Text == "")
            {
                MessageBox.Show("未填写姓名！");
                return;
            }
            CommandSign.path = tb_Name.Text;
            this.Close();

            name = tb_Name.Text;
            path = textBox1.Text;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = "jpg文件 (*.jpg)|*.jpg|dwg文件 (*.dwg)|*.dwg|所有文件|*.*";
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                textBox1.Text = ofd.FileName;
            }
        }

    }
}
